package com.bootdo.market.service;

import com.bootdo.market.domain.ProductAdvertisementDO;

import java.util.List;
import java.util.Map;

/**
 * @author jinse
 * @email market@jinse.com
 * @date 2019-04-19 17:45:07
 */
public interface ProductAdvertisementService {

    ProductAdvertisementDO get(Integer id);

    List<ProductAdvertisementDO> list(Map<String, Object> map);

    int count(Map<String, Object> map);

    int save(ProductAdvertisementDO productAdvertisement);

    int update(ProductAdvertisementDO productAdvertisement);

    int remove(Integer id);

    int batchRemove(Integer[] ids);

    List<ProductAdvertisementDO> productChannelList(Map<String, Object> map);

    int productChannelListCount(Map<String, Object> map);

    List<ProductAdvertisementDO> productAdvpositionList(Map<String, Object> map);

    int productAdvpositionListCount(Map<String, Object> map);

    ProductAdvertisementDO getDataShow(ProductAdvertisementDO productAdvertisement);

    int insertOfferArea(List<Map<String, Object>> mapList);

    ProductAdvertisementDO findValidData(ProductAdvertisementDO productAdvertisement);

    List<Map<String, String>> findAreaByOfferId(Integer id);

    int deleteOfferAreaByOfferId(Integer id);

}
